import request from '@/utils/request'
import defaultSettings from '@/settings'
export function fetchList(query) {
  return request({
    url: defaultSettings.serviceUrl.moon_fast + '/sysPost/list',
    method: 'post',
    data: query
  })
}

//岗位下拉列表
export function getList() {
  return request({
    url: defaultSettings.serviceUrl.moon_fast + '/sysPost/getList',
    method: 'get'
  })
}

export function save(data) {
  return request({
    url: defaultSettings.serviceUrl.moon_fast + '/sysPost/save',
    method: 'post',
    data: data
  })
}
export function removeByIds(id) {
  return request({
    url: defaultSettings.serviceUrl.moon_fast + '/sysPost/removeByIds?ids=' + id ,
    method: 'get'
  })
}

